<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns="http://www.w3.org/1999/html">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form th:action="@{/stu/addone}" method="post" th:object="${stu}" enctype="multipart/form-data">
    <label for="stuno">学号</label>
    <input type="text" th:field="*{stuno}"></br>
    <label for="name">姓名</label>
    <input type="text" th:field="*{name}"></br>
    <label for="birth">生日</label>
    <input type="text" th:field="*{birth}"></br>
    <label for="country">国籍</label>
    <select th:field="*{country}">
      <option value="">请选择</option>
      <option value="0">中国</option>
      <option value="1">美国</option>
      <option value="2">德国</option>
    </select></br>
    <label for="sex">性别</label>
    <input type="radio" name="sex" value="0" checked="checked">女
    <input type="radio" name="sex" value="1" checked="checked">男
    </br>
    <label for="hobby">爱好</label>
    <input type="checkbox" name="hobby" value="music">音乐
    <input type="checkbox" name="hobby" value="sport">运动
    <input type="checkbox" name="hobby" value="java">Java
    </br>
    <label for="hobby">一寸美照</label>
    <input type="file" accept="image/jpeg,image/gif,image/png,image/jpg" name="photo">
    </br>
    <button>提交</button>
</form>
</body>
</html>